{% extends "base.html" %}

{% block title %}我的项目 - 我的个人网站{% endblock %}

{% block content %}
<div class="projects-container">
    <h1>我的项目</h1>
    <div class="projects-grid">
        {% for project in projects %}
        <div class="project-card">
            {% if project.image_url %}
            <img src="{{ project.image_url }}" alt="{{ project.title }}">
            {% endif %}
            <div class="project-info">
                <h3>{{ project.title }}</h3>
                <p>{{ project.description }}</p>
                {% if project.project_url %}
                <a href="{{ project.project_url }}" class="project-link">查看项目</a>
                {% endif %}
            </div>
        </div>
        {% endfor %}
    </div>
</div>
{% endblock %}